package com.gitee.taotaojs.mybootsuper.config.swagger;

import com.gitee.taotaojs.mybootsuper.config.swagger.enumup.EnumModelPropertyBuilderPlugin;
import com.gitee.taotaojs.mybootsuper.config.swagger.enumup.EnumParameterBuilderPlugin;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * @author: TaoTaojs
 * @Date: 2020/7/16 12:04 PM
 * @Description: <br>
 * <h1>swagger拓展配置</h1>
 * <h2>简介</h2>
 * swagger拓展配置
 * <h3>主要功能：</h3>
 * <ol>
 *     <li>swagger对于URL传参的处理</li>
 *     <li>swagger对于Model对象属性的处理</li>
 * </ol>
 * @关联类:
 * @参考链接：
 * @History: <br/>
 * <author>        <time>                      <version>          <desc>
 * TaoTaojs        2020/7/16 12:04 PM                V1.0
 */
@EnableSwagger2
@Configuration
public class SwaggerConfiguration {

    @Bean
    public EnumModelPropertyBuilderPlugin enumModelPropertyBuilderPlugin() {
        return new EnumModelPropertyBuilderPlugin();
    }


    @Bean
    public EnumParameterBuilderPlugin enumParameterBuilderPlugin() {
        return new EnumParameterBuilderPlugin();
    }

}
